package com.chentf.aspect;

import com.chentf.entity.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-01-24 21:57:09
 */
public class TestAspectProxy {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("/applicationContext2.xml");
        UserService userService = (UserService) ctx.getBean("userService");
        userService.login("chentf", "123456");
        userService.register(new User());
    }
}
